#include "Clean.h"
#include "Init.h"
#include "Irp.h"


NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegPath)
{
    UNREFERENCED_PARAMETER(pRegPath);

    pDriverObject->DriverUnload = DriverUnload;
    pDriverObject->DriverExtension->AddDevice = DrvAddDevice;

    pDriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = IrpDeviceControl;
    pDriverObject->MajorFunction[IRP_MJ_CREATE] = IrpCreate;
    pDriverObject->MajorFunction[IRP_MJ_CLOSE] = IrpClose;
    pDriverObject->MajorFunction[IRP_MJ_WRITE] = IrpWrite;
    pDriverObject->MajorFunction[IRP_MJ_READ] = IrpRead;
    pDriverObject->MajorFunction[IRP_MJ_PNP] = IrpPnp;

    return STATUS_SUCCESS;
}